import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter as Router, Switch, Route, Link, Redirect } from 'react-router-dom';

import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';

import reducers from './reducers';
import App from './components/App';
import Login from './components/Login';
import './main.css'

const Store = createStore(reducers)

ReactDOM.render(
    <Provider store={Store}>
        <Router>
            <Switch>
                <Route path='/login' component={Login} />
                <Route path='/' component={App} />
            </Switch>
        </Router>
    </Provider>,
    document.getElementById('root')
);
